const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  //代理服务器
  // devServer: {
  //   proxy: 'http://localhost:9922'
  // }
  devServer: {
    //以/api开头的接口会被转发到target
    '/api':{
      target: 'http://localhost:9922',
      pathRewrite: {'^/api': 'api'},
      ws: true,
      changeOrigin: true
    }
  }
})
